.class public abstract Les/lx;
.super Landroid/widget/FrameLayout;
.source "AbsRecyclerViewFastScroller.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/lx$d;
    }
.end annotation


# static fields
.field private static final l:[I


# instance fields
.field protected final a:Landroid/view/View;

.field protected final b:Landroid/view/View;

.field private c:Landroid/animation/ObjectAnimator;

.field private d:Landroidx/recyclerview/widget/RecyclerView;

.field protected e:Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;

.field private f:Z

.field private g:Z

.field protected h:Les/lx$d;

.field protected i:Z

.field private final j:Ljava/lang/Runnable;

.field private k:I


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    sget-object v0, Lcom/estrongs/android/pop/n;->AbsRecyclerViewFastScroller:[I

    sput-object v0, Les/lx;->l:[I

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 2

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 1
    invoke-direct {p0, p1, v0, v1}, Les/lx;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    .line 2
    invoke-direct {p0, p1, p2, v0}, Les/lx;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 4

    .line 3
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const/4 p3, 0x0

    .line 4
    iput-boolean p3, p0, Les/lx;->f:Z

    .line 5
    iput-boolean p3, p0, Les/lx;->g:Z

    .line 6
    iput-boolean p3, p0, Les/lx;->i:Z

    .line 7
    new-instance v0, Les/lx$a;

    invoke-direct {v0, p0}, Les/lx$a;-><init>(Les/lx;)V

    iput-object v0, p0, Les/lx;->j:Ljava/lang/Runnable;

    .line 8
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;

    move-result-object v0

    sget-object v1, Les/lx;->l:[I

    invoke-virtual {v0, p2, v1, p3, p3}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;

    move-result-object p2

    const/4 v0, 0x2

    .line 9
    :try_start_0
    invoke-virtual {p0}, Les/lx;->getLayoutResourceId()I

    move-result v1

    .line 10
    invoke-virtual {p2, v0, v1}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v0

    const-string v1, "layout_inflater"

    .line 11
    invoke-virtual {p1, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/LayoutInflater;

    const/4 v2, 0x1

    .line 12
    invoke-virtual {v1, v0, p0, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    const v0, 0x7f0909ff

    .line 13
    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Les/lx;->a:Landroid/view/View;

    const v0, 0x7f090a00

    .line 14
    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Les/lx;->b:Landroid/view/View;

    .line 15
    invoke-virtual {p2, p3}, Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const v1, -0x777778

    .line 16
    invoke-virtual {p2, v2, v1}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v2

    .line 17
    iget-object v3, p0, Les/lx;->a:Landroid/view/View;

    invoke-direct {p0, v3, v0, v2}, Les/lx;->a(Landroid/view/View;Landroid/graphics/drawable/Drawable;I)V

    const/4 v0, 0x3

    .line 18
    invoke-virtual {p2, v0}, Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v2, 0x4

    .line 19
    invoke-virtual {p2, v2, v1}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v1

    .line 20
    iget-object v2, p0, Les/lx;->b:Landroid/view/View;

    invoke-direct {p0, v2, v0, v1}, Les/lx;->a(Landroid/view/View;Landroid/graphics/drawable/Drawable;I)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 21
    invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V

    .line 22
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p2

    invoke-virtual {p2}, Lcom/estrongs/android/ui/theme/b;->m()Z

    move-result p2

    if-nez p2, :cond_0

    .line 23
    invoke-virtual {p0, p3, p3, p3, p3}, Landroid/widget/FrameLayout;->setPadding(IIII)V

    .line 24
    :cond_0
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object p1

    iget p1, p1, Landroid/content/res/Configuration;->orientation:I

    iput p1, p0, Les/lx;->k:I

    return-void

    :catchall_0
    move-exception p1

    .line 25
    invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V

    .line 26
    throw p1
.end method

.method static synthetic a(Les/lx;)Landroid/animation/ObjectAnimator;
    .locals 0

    .line 1
    iget-object p0, p0, Les/lx;->c:Landroid/animation/ObjectAnimator;

    return-object p0
.end method

.method static synthetic a(Les/lx;Landroid/animation/ObjectAnimator;)Landroid/animation/ObjectAnimator;
    .locals 0

    .line 2
    iput-object p1, p0, Les/lx;->c:Landroid/animation/ObjectAnimator;

    return-object p1
.end method

.method private a(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V
    .locals 2
    .annotation build Landroid/annotation/TargetApi;
        value = 0x10
    .end annotation

    .line 6
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x10

    if-lt v0, v1, :cond_0

    .line 7
    invoke-virtual {p1, p2}, Landroid/view/View;->setBackground(Landroid/graphics/drawable/Drawable;)V

    goto :goto_0

    .line 8
    :cond_0
    invoke-virtual {p1, p2}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    :goto_0
    return-void
.end method

.method private a(Landroid/view/View;Landroid/graphics/drawable/Drawable;I)V
    .locals 0

    if-eqz p2, :cond_0

    .line 4
    invoke-direct {p0, p1, p2}, Les/lx;->a(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V

    goto :goto_0

    .line 5
    :cond_0
    invoke-virtual {p1, p3}, Landroid/view/View;->setBackgroundColor(I)V

    :goto_0
    return-void
.end method

.method static synthetic a(Les/lx;Z)Z
    .locals 0

    .line 3
    iput-boolean p1, p0, Les/lx;->g:Z

    return p1
.end method

.method private b(F)I
    .locals 1

    .line 2
    iget-object v0, p0, Les/lx;->d:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView;->getAdapter()Landroidx/recyclerview/widget/RecyclerView$Adapter;

    move-result-object v0

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->getItemCount()I

    move-result v0

    int-to-float v0, v0

    mul-float v0, v0, p1

    float-to-int p1, v0

    return p1
.end method

.method static synthetic b(Les/lx;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Les/lx;->g:Z

    return p0
.end method

.method static synthetic c(Les/lx;)Landroidx/recyclerview/widget/RecyclerView;
    .locals 0

    .line 1
    iget-object p0, p0, Les/lx;->d:Landroidx/recyclerview/widget/RecyclerView;

    return-object p0
.end method

.method private c(F)Z
    .locals 3

    .line 2
    iget-object v0, p0, Les/lx;->b:Landroid/view/View;

    invoke-static {v0}, Landroidx/core/view/ViewCompat;->getTranslationY(Landroid/view/View;)F

    move-result v0

    .line 3
    iget-object v1, p0, Les/lx;->b:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getTop()I

    move-result v1

    int-to-float v1, v1

    add-float/2addr v1, v0

    .line 4
    iget-object v2, p0, Les/lx;->b:Landroid/view/View;

    invoke-virtual {v2}, Landroid/view/View;->getBottom()I

    move-result v2

    int-to-float v2, v2

    add-float/2addr v2, v0

    cmpl-float v0, p1, v1

    if-ltz v0, :cond_0

    cmpg-float p1, p1, v2

    if-gtz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method static synthetic d(Les/lx;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Les/lx;->f:Z

    return p0
.end method


# virtual methods
.method public a(Landroid/view/MotionEvent;)F
    .locals 1

    .line 11
    invoke-virtual {p0}, Les/lx;->getScrollProgressCalculator()Les/px;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 12
    invoke-virtual {p0}, Les/lx;->getScrollProgressCalculator()Les/px;

    move-result-object v0

    invoke-interface {v0, p1}, Les/px;->a(Landroid/view/MotionEvent;)F

    move-result p1

    return p1

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method public a()V
    .locals 1

    .line 13
    iget-object v0, p0, Les/lx;->j:Ljava/lang/Runnable;

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->removeCallbacks(Ljava/lang/Runnable;)Z

    .line 14
    iget-object v0, p0, Les/lx;->j:Ljava/lang/Runnable;

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public abstract a(F)V
.end method

.method public a(FZ)V
    .locals 0

    .line 9
    invoke-direct {p0, p1}, Les/lx;->b(F)I

    move-result p1

    if-eqz p2, :cond_0

    .line 10
    new-instance p2, Les/lx$b;

    invoke-direct {p2, p0, p1}, Les/lx$b;-><init>(Les/lx;I)V

    invoke-virtual {p0, p2}, Landroid/widget/FrameLayout;->post(Ljava/lang/Runnable;)Z

    :cond_0
    return-void
.end method

.method public a(FF)Z
    .locals 0

    .line 15
    invoke-direct {p0, p2}, Les/lx;->c(F)Z

    move-result p1

    return p1
.end method

.method protected abstract b()V
.end method

.method public dispatchTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 2

    .line 1
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    const/4 v1, 0x1

    invoke-interface {v0, v1}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V

    .line 2
    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result p1

    return p1
.end method

.method public getHandleView()Landroid/view/View;
    .locals 1

    .line 1
    iget-object v0, p0, Les/lx;->b:Landroid/view/View;

    return-object v0
.end method

.method protected abstract getLayoutResourceId()I
.end method

.method public getOnScrollListener()Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;
    .locals 1
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .line 1
    iget-object v0, p0, Les/lx;->e:Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Les/lx$c;

    invoke-direct {v0, p0}, Les/lx$c;-><init>(Les/lx;)V

    iput-object v0, p0, Les/lx;->e:Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;

    .line 3
    :cond_0
    iget-object v0, p0, Les/lx;->e:Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;

    return-object v0
.end method

.method protected abstract getScrollProgressCalculator()Les/px;
    .annotation build Landroidx/annotation/Nullable;
    .end annotation
.end method

.method protected onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    .line 2
    invoke-virtual {p0}, Les/lx;->b()V

    return-void
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 1

    .line 1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result p1

    invoke-virtual {p0, v0, p1}, Les/lx;->a(FF)Z

    move-result p1

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    return p1

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method protected onLayout(ZIIII)V
    .locals 0

    .line 1
    invoke-super/range {p0 .. p5}, Landroid/widget/FrameLayout;->onLayout(ZIIII)V

    .line 2
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object p1

    iget p1, p1, Landroid/content/res/Configuration;->orientation:I

    .line 3
    invoke-virtual {p0}, Les/lx;->getScrollProgressCalculator()Les/px;

    move-result-object p2

    if-eqz p2, :cond_0

    iget p2, p0, Les/lx;->k:I

    if-eq p2, p1, :cond_1

    .line 4
    :cond_0
    iput p1, p0, Les/lx;->k:I

    .line 5
    invoke-virtual {p0}, Les/lx;->b()V

    :cond_1
    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 4

    .line 1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-eqz v0, :cond_2

    if-eq v0, v2, :cond_1

    const/4 v3, 0x2

    if-eq v0, v3, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    invoke-virtual {p0, v2}, Les/lx;->setFromTouchHandle(Z)V

    .line 3
    invoke-virtual {p0, p1}, Les/lx;->a(Landroid/view/MotionEvent;)F

    move-result p1

    .line 4
    invoke-virtual {p0, p1, v2}, Les/lx;->a(FZ)V

    .line 5
    invoke-virtual {p0, p1}, Les/lx;->a(F)V

    goto :goto_0

    .line 6
    :cond_1
    invoke-virtual {p0, v1}, Les/lx;->setFromTouchHandle(Z)V

    .line 7
    invoke-virtual {p0}, Les/lx;->a()V

    goto :goto_0

    .line 8
    :cond_2
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result p1

    invoke-virtual {p0, v0, p1}, Les/lx;->a(FF)Z

    move-result p1

    if-eqz p1, :cond_3

    return v2

    :cond_3
    :goto_0
    return v1
.end method

.method public setBarBackground(Landroid/graphics/drawable/Drawable;)V
    .locals 1

    .line 1
    iget-object v0, p0, Les/lx;->a:Landroid/view/View;

    invoke-direct {p0, v0, p1}, Les/lx;->a(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V

    return-void
.end method

.method public setBarColor(I)V
    .locals 1

    .line 1
    iget-object v0, p0, Les/lx;->a:Landroid/view/View;

    invoke-virtual {v0, p1}, Landroid/view/View;->setBackgroundColor(I)V

    return-void
.end method

.method public setFromTouchHandle(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Les/lx;->f:Z

    return-void
.end method

.method public setHandleBackground(Landroid/graphics/drawable/Drawable;)V
    .locals 1

    .line 1
    iget-object v0, p0, Les/lx;->b:Landroid/view/View;

    invoke-direct {p0, v0, p1}, Les/lx;->a(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V

    return-void
.end method

.method public setHandleColor(I)V
    .locals 1

    .line 1
    iget-object v0, p0, Les/lx;->b:Landroid/view/View;

    invoke-virtual {v0, p1}, Landroid/view/View;->setBackgroundColor(I)V

    return-void
.end method

.method public setHandleViewDisplayListener(Les/lx$d;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/lx;->h:Les/lx$d;

    return-void
.end method

.method public setIsShowAdressBar(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Les/lx;->i:Z

    return-void
.end method

.method public setRecyclerView(Landroidx/recyclerview/widget/RecyclerView;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/lx;->d:Landroidx/recyclerview/widget/RecyclerView;

    return-void
.end method
